import Mock from 'mockjs'

// 配置
Mock.setup({
    timeout: 1000
})

// const userdata = Mock.mock('/api/user', {
//     username: 'geallean',
//     age: 18,
//     gender: '女'
// })

const userdata = Mock.mock(/\/api\/user/igs, {
    username: 'geallean',
    age: 18,
    gender: '女',
    // 以下为mock随机数据
    datetime: '@datetime',
    nickname: '@cname',
    'rank|1-100': 100,
    'list|1-10': [{
        'id|+1': 1
    }],
    imgUrl: '@image',
    email: '@email'
})